<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>WebSocket Test</title>
</head>
<body>
<script>
    let ws = new WebSocket("ws://localhost:8084/myWs");

    ws.onopen = function () {
        ws.send("hello")
        // console.log("hello");
    }
    ws.onmessage = function (message){
        console.log(message.data)
    }
</script>
</body>
</html>